package com.hs.shirodemo2.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class SysPermission {

    private Integer id;
    private String name;
    private String type;
    private String url;
    private String percode;
    private Integer parentId;
    private Integer sort;
    private String del;

    /*
    * 一对一关联属性: 可以使用字符串，也可以使用SysPermission
    * */
    private SysPermission parent;

    private List<SysPermission> children;
}